package com.gjun.struts.resource.dao.impl;

import org.springframework.orm.hibernate3.support.HibernateDaoSupport;

import com.gjun.struts.bean.ext.ReceiveAddress;
import com.gjun.struts.resource.dao.IReceiveAddressDao;

public class ReceiveAddressDaoImpl extends HibernateDaoSupport implements IReceiveAddressDao {

	public int saveReceiveAddress(ReceiveAddress receiveAddress) {
		getHibernateTemplate().save(receiveAddress);
		int id = receiveAddress.getId();
		return id;
	}

	public void updateReceiveAddress(ReceiveAddress receiveAddress) {
		getHibernateTemplate().update(receiveAddress);
	
	}
	


	
}
